﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="indexTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Home Page
</asp:Content>

<asp:Content ContentPlaceHolderID="HeadContent" runat="server">
<style type="text/css">
.floaty
{
    position:relative;
    width:35%;
    float:left;
}
</style>
</asp:Content>

<asp:Content ID="indexContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Issue Tracker Application using NetAdvantage ASP.NET Controls</h2>
    <p>Begin by viewing the <%= Html.ActionLink("Issues List","List","Issues") %> to 
    see the WebDataGrid and WebChart and many of it's behaviors enabled with litte or no
    code customization.</p>
    <p>Next try adding a <%= Html.ActionLink("new issue","Index","Issues") %>
    to the list. See how the WebHTMLEditor, WebSlider and WebDropDown list are
    used to help make input easier on the user.</p>
    <p>Finally, see how the RowEditTemplate on the WebDataGrid is customized
    to work with ASP.NET MVC controller actions. Double-click on the far left 
    column of a data item in the <%= Html.ActionLink("issue type list","Index","IssueTypes") %>
    or click the 'Add' button to add new issue types. Then return to the <%= Html.ActionLink("new issue","Index","Issues") %>
    page to see your changes in the contents of the drop down list.</p>
</asp:Content>

<asp:Content ContentPlaceHolderID="DescriptionContent" runat="server">
<h3>In this Application</h3>
<p>This application is built using <a href="http://www.infragistics.com/dotnet/netadvantage/aspnet.aspx">NetAdvantage for Web Client 2009 Vol. 1</a>
and <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=53289097-73ce-43bf-b6a6-35e00103cb4b&displaylang=en">ASP.NET MVC 1</a>. 
The controls in this application are un-modified versions of the existing NetAdvantage ASP.NET product.
This sample application demonstrates how to take advantage of many of the features of the existing
toolset in an MVC application.</p>

<p><b>Note:</b> The key is to only use the features of the controls that do not cause a postback and turn off ViewState ;)</p>

<p>The Issue Tracker models a typical line-of-business web 
application where rich server controls help boost the user’s 
experience of an application. A number of the Infragistics NetAdvantage 
Web Client controls are used in this sample. The following is a 
list of the controls and associated behaviors implemented in this demo:</p>

<div class="floaty">
<ul>
  <li><a href="http://infragistics.com/dotnet/netadvantage/aspnet/webdatagrid.aspx">WebDataGrid</a></li>
  <ul>
    <li>Column Resizing</li>
    <li>Activation</li>
    <li>Row Selectors</li>
    <li>Selection</li>
    <li>Paging</li>
  </ul>
  <li><a href="http://infragistics.com/dotnet/netadvantage/aspnet/webdropdown.aspx">WebDropDown</a></li>
  <ul>
    <li>Custom Template</li>
  </ul>
</ul>
</div>
<div class="floaty">
<ul>
  <li><a href="http://infragistics.com/dotnet/netadvantage/aspnet/webhtmleditor.aspx">WebHTMLEditor</a></li>
  <ul>
    <li>Custom editor options</li>
  </ul>
  <li><a href="http://infragistics.com/dotnet/netadvantage/aspnet/webslider.aspx">WebSlider</a></li>
  <ul>
    <li>Custom value constraints</li>
  </ul>
  <li><a href="http://infragistics.com/dotnet/netadvantage/aspnet/webchart.aspx">WebChart</a></li>
  <ul>
    <li>Chart Presets</li>
  </ul>
</ul>
</div>

<h4 class="clear">Infragistics MVC ScriptManager</h4>
<p>To support the controls outside the context of WebForms, the view pages use a new control called the 
Infragistics MVC ScriptManager. This control decouples the traditional server controls
from requiring a server-form and the ASP.NET AJAX ScriptManager.</p>

<p>The MVC ScriptManager is available in the Visual Studio Toolbox:</p>

<p><img src="../images/toolbox.png" alt="Infragistics MVC ScriptManager" width="253" height="61" /></p>

<p>The control interrogates each Infragistics UI control for the required
JavaScript files and commands rendering the appropriate markup to the page.</p>

<h4>What About Your Other Controls?</h4>
<p>This site is built as a demonstration of how the Infragistics 
NetAdvantage ASP.NET controls may be used in the context of an ASP.NET MVC web project.
While only a few of the controls from the library are used in this sample,
many of the web client controls may be used in a MVC project using 
the approach demonstrated in this application.</p>

<h4>What if I have Questions?</h4>
<p>Please note that this application represents guidance for use of NetAdvantage Web Client
in a ASP.NET MVC application. There is no official support through the Infragistics Developer
Support for the toolset in MVC.</p>
<p>We do, however, have a <a href="http://blogs.infragistics.com/forums/369.aspx">new support forum available for your questions surrounding NetAdvantage for ASP.NET
in ASP.NET MVC</a>.</p>

</asp:Content>
